<?php
/**
 * Smart Library - Smart Framework
 * http://smart-framework.highet.eu
 *
 * @category   SmartL
 * @package    SmartL_Version
 * @copyright  Copyright (c) 2005-2008 Smart Framework team - Stepan Sindelar, Vojtech Vit
 * @license    http://www.opensource.org/licenses/bsd-license.php	New BSD License
 */

/**
 * Class used to store and retrieve the version of SmartL.
 *
 * @package SmartL_Version
 */
class SmartL_Version {
	/**
	 * SmartL version.
	 *
	 */
	const VERSION = "1.0RC";
	
	/**
	 * Recommended Zend Framework version.
	 *
	 */
	const RECOMMENDED_VERSION_ZEND_FRAMEWORK = "1.7.0";
	
	/**
	 * Recommended Doctrine ORM version.
	 *
	 */
	const RECOMMENDED_VERSION_DOCTRINE = "1.1";
	
	/**
	 * Returns current Zend Framework version.
	 *
	 * @return string
	 */
	static public function getZendFrameworkVersion() {
		require_once 'Zend/Version.php';
		return Zend_Version::VERSION;
	}
	
	/**
	 * Returns current Doctrine ORM version.
	 *
	 * @return string
	 */
	static public function getDoctrineVersion() {
		require_once 'Doctrine.php';
		return Doctrine::VERSION;
	}
}
